package Package.Example.Example_2;

public class Customer implements    Runnable {
    private Box b;
    public Customer(Box b) {
        this.b = b;
    }

    @Override
    public void run() {
        while (true) {
            b.get();
            System.out.println("消费者获取牛奶");
        }
    }
}
